package com.superhelper.app.utils;

import java.util.HashMap;
import java.util.Map;

import com.sankuai.sjst.platform.developer.domain.RequestDomain;
import com.sankuai.sjst.platform.developer.domain.RequestMethod;
import com.sankuai.sjst.platform.developer.request.CipCaterStringPairRequest;

public class CipCaterQueryReviewRequest extends CipCaterStringPairRequest {
	private String ePoiId;
	private Long startTime;
	private Long endTime;
	private Integer offset = 0;
	private Integer limit = 20;

	public CipCaterQueryReviewRequest() {
		this.url = RequestDomain.preUrl.getValue()
				+ "/waimai/poi/queryReviewList";
		this.requestMethod = RequestMethod.GET;
	}

	@Override
	public Map<String, String> getParams() {
		return new HashMap<String, String>() {
			{
				put("ePoiId", ePoiId.toString());
				put("startTime", startTime.toString());
				put("endTime", endTime.toString());
				put("offset", offset.toString());
				put("limit", limit.toString());
			}
		};
	}

	@Override
	public boolean paramsAbsent() {
		return ePoiId == null;
	}

	public String getePoiId() {
		return ePoiId;
	}

	public void setePoiId(String ePoiId) {
		this.ePoiId = ePoiId;
	}

	public Long getStartTime() {
		return startTime;
	}

	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

}
